home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Psigblock(2) Oct. 1, 1991 Psigblock(2)
-
-
- N✓NA✓AM✓ME✓E
- Psigblock, Psigsetmask - block or unblock delivery of sig-
- nals
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- LONG Psigblock( LONG mask );
- LONG Psigsetmask( LONG mask );
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- _✓P_✓s_✓i_✓g_✓b_✓l_✓o_✓c_✓k adds the set of signals defined by the variable
- _✓m_✓a_✓s_✓k to the set of signals which are blocked from deliv-
- ery. Each bit of _✓m_✓a_✓s_✓k represents a signal; if bit _✓n of
- _✓m_✓a_✓s_✓k is set, then signal number _✓n is blocked. _✓P_✓s_✓i_✓g_✓b_✓l_✓o_✓c_✓k
- returns the set of blocked signals as it was prior to the
- new signals being added to it; the old set can thus be
- restored with the _✓P_✓s_✓i_✓g_✓s_✓e_✓t_✓m_✓a_✓s_✓k call.
-
- _✓P_✓s_✓i_✓g_✓s_✓e_✓t_✓m_✓a_✓s_✓k replaces the set of blocked signals with the
- set in _✓m_✓a_✓s_✓k; the bits of _✓m_✓a_✓s_✓k have the same meaning as
- they do for _✓P_✓s_✓i_✓g_✓b_✓l_✓o_✓c_✓k, except that bits that are set to 0
- will cause the corresponding signals to no longer be
- blocked. _✓P_✓s_✓i_✓g_✓s_✓e_✓t_✓m_✓a_✓s_✓k returns the old set of blocked sig-
- nals.
-
- Note that certain signals (e.g. SIGKILL) cannot be
- blocked, and the kernel will (silently) clear the corre-
- sponding bits in _✓m_✓a_✓s_✓k before changing the blocked signal
- set.
-
- Blocked signals remain blocked across _✓P_✓f_✓o_✓r_✓k and _✓P_✓v_✓f_✓o_✓r_✓k
- calls. After a _✓P_✓e_✓x_✓e_✓c call, the child process will always
- start with an empty set of blocked signals, regardless of
- which signals were blocked by the parent.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- _✓P_✓k_✓i_✓l_✓l(2), _✓P_✓s_✓i_✓g_✓n_✓a_✓l(2), _✓P_✓s_✓i_✓g_✓p_✓e_✓n_✓d_✓i_✓n_✓g(2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Version 0.9 MiNT Programmer's Manual 1
-
-
-